package zzl.reactor;

import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;

/**
 * @ClassName Response
 * @Description 响应
 * @Author 张泽立
 * @Version 1.0
 * @Date 2019/2/27-17:41
 **/
public class Response {
    private SelectionKey selectionKey;

    private ByteBuffer byteBuffer;

    public SelectionKey getSelectionKey() {
        return selectionKey;
    }

    public ByteBuffer getByteBuffer() {
        return byteBuffer;
    }

    public Response(SelectionKey selectionKey, ByteBuffer byteBuffer) {
        this.selectionKey = selectionKey;
        this.byteBuffer = byteBuffer;
    }
}
